package com.ruoyi.app.dyh.hxf.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class Message extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String msgId;

    @Excel(name = "消息标题")
    @NotBlank(message = "消息标题不能为空")
    @Size(max = 64, message = "消息标题不能超过64个字符")
    private String msgTitle;

    @Excel(name = "消息内容")
    @NotBlank(message = "消息内容不能为空")
    @Size(max = 64, message = "消息内容不能超过64个字符")
    private String msgContent;

    @Excel(name = "消息类型（0系统消息，1活动消息）")
    private Integer mgsStatus;

    @Excel(name = "消息接收人")
    private String receiverId;

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getMsgTitle() {
        return msgTitle;
    }

    public void setMsgTitle(String msgTitle) {
        this.msgTitle = msgTitle;
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    public Integer getMgsStatus() {
        return mgsStatus;
    }

    public void setMgsStatus(Integer mgsStatus) {
        this.mgsStatus = mgsStatus;
    }

    public String  getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("msgId", getMsgId())
                .append("msgTitle", getMsgTitle())
                .append("msgContent", getMsgContent())
                .append("mgsStatus", getMgsStatus())
                .append("receiverId", getReceiverId())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("isDelete", getIsDelete())
                .append("remark", getRemark())
                .toString();
    }
}
